<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
     <table width="880" height="200" border="0" align="center">
  <tr>
    <td height="80" colspan="4" background="photo/header.jpg">
    <h2> Estore图书商城 </h2>
    <h3>快乐的购物天堂</h3>
    </td>
  </tr>
    </table>
    
  <table width="880" height="70" border="0" align="center">
  <tr>
    <th width="140" bgcolor="#0099FF" scope="col">
    <A href="Page/index.jsp">首页</A></th>
    <th width="140" bgcolor="#0099FF" scope="col">
    <A href="/Page/productinfo">商品分类</A></th>
    <th width="140" bgcolor="#0099FF" scope="col">
    <A href="Page/AboutUs.jsp">关于我们</A></th>
    <th width="569" bgcolor="#FFFFFF" scope="col"><div align="left">用户未登录</div></th>
  </tr>
</table>


   <table align="center" valign="top">
   <tr>
      <td>
      <table width="500" height="100" border="0"  valign="top">
      <tr>
      <td width="500" height="4" align="left" bgcolor="#999999" valign="top" scope="col">商品促销信息</td>
      </tr>
      <tr>
                <td width="500" height="100">
                <script language="javascript">
                  setInterval(test,1000);
                   var array=new Array();
                   var index=0;
                   var array= new Array("photo/screen1.jpg","photo/screen2.jpg","photo/screen3.jpg","photo/screen4.jpg","photo/screen5.jpg");
                   function test()
                   { var myimg=document.getElementById("imgs");
                    if(index==array.length-1)
                       { index=0; }else{ index++; }
                    myimg.src=array[index];
                   }
                </script>
                <img id="imgs" src="photo/screen6.jpg"/>
                </td>
        </tr> 
   
      <tr>
      <td  width="500" height="4" align="left" valign="top" scope="col"> 
      <form  bgcolor="#999999"action="zhankai" method="post">
    	热卖商品销售中<br>
    	<input type="submit" value="更多商品">
    </form></td>
      </tr>
      <tr><td  width="500" height="350" align="left" valign="top" scope="col">
      </td></tr>
     </table>
     </td>



<td>
    <table width="240" height:300px; border="1" >
     <tr>
    <td width="240" height="25" align="center"  bgcolor="#0099FF" valign="top" scope="col">
    导航菜单</td>
    </tr>
    <tr>
    <td width="240" height="25"align="center" bgcolor="#999999" scope="col">
    <A href="Page/index.jsp">首页</A></td>
    </tr>
    <tr>
    <td width="240" height="25" align="center"bgcolor="#999999" scope="col">
    <A href="/Page/addProduct.jsp">添加商品</A></td>
    </tr>
    <tr>
    <td width="240" height="25" align="center"bgcolor="#999999" scope="col">
    <A href="/Page/productinfo">查看商品</A></td>
    </tr>
    <tr>
    <td width="240" height="25"align="center" bgcolor="#999999" scope="col">
    <A href="/Page/showCart.jsp">查看购物车</A></td>
    </tr>
     <tr>
    <td width="240" height="25"align="center" bgcolor="#999999" scope="col">
    <A href="/Page/downLoad.jsp">下载榜单</A></td>
    </tr>
     <tr>
    <td width="240" height="25"align="center" bgcolor="#999999" scope="col">
    <A href="/Page/AboutUs.jsp">关于我们</A></td>
    </tr>
     <tr>
    <td width="240" height="25"align="center" bgcolor="#999999" scope="col">
    <A href="/Page/AboutUs.jsp">联系方式</A></td>
    </tr>
    
      <tr>
   <td width=
   "240" height="20" align="center"  bgcolor="#CCFF00" valign="top" scope="col">
    用户登录</td>
    </tr>
    <tr>
    <td width="240" height="20"align="center" bgcolor="#999999" scope="col">
    <form action="/Page/login" method="post">
    	用户：<input type="text" name="username"><br>
    	密码：<input type="password" name="password"><br>
    	<input type="checkbox" name="checkbox" value="checkbox" id="checkbox" />
       <label for="checkbox">记住用户</label>
          <input type="checkbox" name="checkbox" value="checkbox" id="checkbox" />
       <label for="checkbox">自动登录</label><br>
    	<input type="submit" value="登录"><a href="/Page/regist.jsp">注册</a>
</form>

    </td>
    </tr>
    
    
     <tr>
   <td width="240" height="20" align="center"  bgcolor="#CCFF00" valign="top" scope="col">
    查询商品</td>
    </tr>
    <tr>
    <td width="240" height="20"  align="left" bgcolor="#999999" scope="col">
    <form action="found" method="post">
    <input type="text" name="productname"><br>
    <input type="submit" value="查询">
    </form>
    </td>
    </tr>
    
     <tr>
   <td width="240" height="20" align="center"  bgcolor="#CCFF00" valign="top" scope="col">
    联系信息</td>
    </tr>
    <tr>
    <td  align="center">
    <img id="imgs" src="photo/contact.jpg" width="240" height="150"/>
    </td>
   </tr>
   <tr><td>公司信息<br>传媒播客<br>电子邮箱1509730079@qq.com
   </td></tr>
    </table>
</td>
    

    </tr>
    </table>
  </body>
</html>
